package ace.module.stock.core.impl.dao.repository;


import ace.cmp.spring.data.jdbc.querydsl.core.repository.QuerydslJdbcBaseRepository;
import ace.module.stock.core.impl.constant.StockCoreConstant;
import ace.module.stock.core.impl.dao.entity.WmsSalesQuantity;
import com.baomidou.dynamic.datasource.annotation.DS;
import java.util.List;
import org.springframework.stereotype.Repository;

/**
 * 销售数量 repository.
 *
 * @author Caspar
 */
@DS(StockCoreConstant.DEFAULT_DATA_SOURCE_NAME)
@Repository
public interface WmsSalesQuantityRepository extends QuerydslJdbcBaseRepository<WmsSalesQuantity,Long> {

  WmsSalesQuantity findByWmsAppIdAndObjectIdAndObjectParentIdAndObjectTypeAndDeleteFlag(Long wmsAppId, Long objectId, Long objectParentId, Integer objectType, Long deleteFlag);

  List<WmsSalesQuantity> findByWmsAppIdAndObjectIdInAndObjectTypeAndDeleteFlag(Long wmsAppId, List<Long> objectIds, Integer objectType, Long deleteFlag);
}